prevent a stock market rash ruining retirement